package com.tebiecloud.store.client.service;

import com.tebiecloud.common.model.ResultBody;
import com.tebiecloud.store.client.model.entity.Store;
import com.tebiecloud.store.client.model.entity.StoreStaff;
import com.tebiecloud.store.client.model.entity.StoreStaffWallet;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 员工接口
 * @Author: tebie
 * @Date: 2019-09-15 20:34
 */
public interface IStoreStaffServiceClient {

    /**
     * 获取员工信息
     * @param storeId
     * @param userId
     * @return
     */
    @PostMapping("/feign/staff/selectStoreStaff")
    ResultBody<StoreStaff> selectStoreStaff(@RequestParam("storeId") long storeId,
                                            @RequestParam(value = "userId",required = false) Long userId,
                                            @RequestParam(value = "roleCode",required = false) String roleCode);

    /**
     * 更新员工头像和昵称
     * @param userId
     * @param nickName
     * @param headimgurl
     * @return
     */
    @PostMapping("/feign/staff/updateStoreStaff")
    ResultBody<StoreStaff> updateStoreStaff(@RequestParam("userId") long userId,
                                            @RequestParam("nickName") String nickName,
                                            @RequestParam("headimgurl") String headimgurl);

}
